import { request } from './request.js'

export default {
    // 获取战队列表
    getTeamList: function(params) {
        return request('activity/team/list', params)
    },

    // 获取可投票数
    getAvailableVoteNum: function(params) {
        return request('activity/team/availableVote', params)
    },

    // 给战队投票
    vote: function(params) {
        return request('activity/team/vote', params)
    },

    // 查询奖励卡劵
    rewardCoupon: function(params) {
        return request('activity/reward/coupon', params)
    },

    // 获取战队详情
    getTeamDetail: function(params) {
        return request('activity/team/detail', params)
    },

    // 查询投票活动开了没
    getVoteOpenInfo: function(params) {
        return request('activity/vote/countDown', params)
    },

    // 查询任务列表
    getTask: function(params) {
        return request('activity/user/task', params)
    },

    // 完成票数奖励任务
    doTask: function(params) {
        return request('activity/doing/task', params)
    },

    // 查询用户剩余可用抽奖次数
    getLotteryChance: function(params) {
        return request('activity/user/lotteryChance', params)
    },

    // 每日抽奖
    doLottery: function(params) {
        return request('activity/user/lottery', params)
    },

    // 中奖信息轮播
    lotteryWinningMessages: function(params) {
        return request('activity/lottery/winningMessages', params)
    },
}